package com.example.stormold.dao;

import com.example.stormold.entity.Info;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface InfoDao {
	@Select("select * from info where id=#{id}")
	Info findById(int id);//根据id查询信息
	
	@Select("select * from info")
	List<Info> findAll();//查询所有信息
}
